import request from '@/router/axios'

export function fetchList (query) {
  return request({
    url: '/admin/staff/list',
    method: 'get',
    params: query
  })
}

export function putStaff (query) {
  return request({
    url: '/admin/staff/put',
    method: 'post',
    data: query
  })
}

export function updateStaff (query) {
  return request({
    url: '/admin/staff/update',
    method: 'post',
    data: query
  })
}

export function updateStaffStatus (query) {
  return request({
    url: '/admin/staff/updateStatus',
    method: 'post',
    data: query
  })
}

export function fetchAllList (query) {
  return request({
    url: '/admin/staff/listAll',
    method: 'get',
    params: query
  })
}

export function downloadTemp (query) {
  return request({
    url: '/admin/staff/downloadTemp',
    method: 'get',
    params: query
  })
}



export function fetchAuthList (query) {
  return request({
    url: '/admin/authApply/list',
    method: 'get',
    params: query
  })
}

export function auditApply (query) {
  return request({
    url: '/admin/authApply/auditApply',
    method: 'get',
    params: query
  })
}

export function auditApplyVip (query) {
  return request({
    url: '/admin/authApply/auditApplyVip',
    method: 'get',
    params: query
  })
}

export function authPayLog (query) {
  return request({
    url: '/admin/authApply/authPayLog',
    method: 'get',
    params: query
  })
}

export function cancelAuditAuth (query) {
  return request({
    url: '/admin/authApply/cancelAuditAuth',
    method: 'get',
    params: query
  })

}
